package com.tech.controller;

import com.tech.service.AccountService;
import com.tech.service.impl.AccountServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AccountController {

//    @Autowired
//    private static AccountServiceImpl service;
    public static void main(String[] args) {

        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService service = (AccountService) app.getBean("accountService");
        service.transferMoney("张三","张无忌",50);

    }
}
